/*
 * File: E:\Kan\ARM\Projects\Google Code\Umrichter\trunk\SimulinkModelle\slprj\ert\_sharedutils\mul_s32_s32_s32_sr3_zero.c
 *
 * Code generated for Simulink model 'Fu_RotAngObsPLL'.
 *
 * Model version                  : 1.664
 * Simulink Coder version         : 8.2 (R2012a) 29-Dec-2011
 * TLC version                    : 8.2 (Dec 29 2011)
 * C/C++ source code generated on : Sun Jun 09 19:13:08 2013
 */

#include "rtwtypes.h"
#include "rtw_shared_utils.h"

int32_T mul_s32_s32_s32_sr3_zero(int32_T a, int32_T b)
{
  uint32_T u32_chi;
  uint32_T u32_clo;
  boolean_T roundup;
  mul_wide_s32(a, b, &u32_chi, &u32_clo);
  roundup = (((int32_T)u32_chi < 0) && (u32_clo & 7U));
  u32_clo = (u32_chi << 29U | u32_clo >> 3U) + (uint32_T)roundup;
  return (int32_T)u32_clo;
}

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
